#include <iostream>

#include "ns3/core-module.h"
#include "ns3/helper-module.h"
#include "ns3/node-module.h"
#include "ns3/simulator-module.h"
#include "ns3/ipv4-flowlet-classifier.h"
#include "ns3/udp-header.h"
using namespace ns3;
using namespace texcp_routing;

void
RunSimulation (void)
{
  UniformVariable rand;

  /*for ( int i=0; i< 140; i++ )
  {
    std::cout << rand.GetValue(0,2) << '\n';
  }*/

  Ipv4FlowletClassifier classifier;
  Ipv4Header ip = Ipv4Header();
  Ipv4Address add = Ipv4Address ("10.0.0.1");
  ip.SetDestination(add);
  std::cout << ip.GetDestination() << '\n';
  ip.SetProtocol(17);
  
  /*Ptr<Packet> p = Create<Packet> ();

  UdpHeader u;

  p->AddHeader(u);
  std::cout << u.GetDestinationPort() << '\n';

  std::cout << "Run simulation";
  uint32_t outId;
  Time ts;
  classifier.Classify(ip, p, &outId, &ts);
   
  std::cout << ts.GetSeconds() << '\n';
  std::cout << outId << '\n';
  
   
  ip.SetDestination(Ipv4Address("10.0.0.2"));
  classifier.Classify(ip, p, &outId, &ts);
  
  Time ts2 = ts + Seconds(1.0); 
 
  if (ts2 < ts) std::cout << "less \n";
  if (ts2 > ts) std::cout << "more \n";
  std::cout << ts.GetSeconds() << '\n';
  std::cout << outId << '\n';*/

  //Simulator::Run ();
  //Simulator::Stop(Seconds(1.0));
  //Simulator::Destroy ();
}

int main (int argc, char *argv[])
{
  
  RunSimulation ();

  std::cout << argc << '\n';
  return 0;
}
